import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import {createRouter, createWebHashHistory} from "vue-router";
import {useRoutes} from "./router/routers.js";
const pinia = createPinia()
const router = createRouter({
    history: createWebHashHistory(),
    routes:useRoutes
})
function routerPiniaPlugin() {
    return { router: router }
}
pinia.use(routerPiniaPlugin);

const  app = createApp(App);
app.use(pinia);
app.use(router);
app.mount('#app')
